diff options
Diffstat (limited to 'tests/cassettes/test_status_post[Content warning-unlisted].yaml')
-rw-r--r-- | tests/cassettes/test_status_post[Content warning-unlisted].yaml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/tests/cassettes/test_status_post[Content warning-unlisted].yaml b/tests/cassettes/test_status_post[Content warning-unlisted].yaml index 6345ba0..099c0e9 100644 --- a/tests/cassettes/test_status_post[Content warning-unlisted].yaml +++ b/tests/cassettes/test_status_post[Content warning-unlisted].yaml | |||
@@ -56,4 +56,61 @@ interactions: | |||
56 | X-XSS-Protection: [1; mode=block] | 56 | X-XSS-Protection: [1; mode=block] |
57 | content-length: ['2'] | 57 | content-length: ['2'] |
58 | status: {code: 200, message: OK} | 58 | status: {code: 200, message: OK} |
59 | - request: | ||
60 | body: status=Toot%21&visibility=unlisted&spoiler_text=Content+warning | ||
61 | headers: | ||
62 | Accept: ['*/*'] | ||
63 | Accept-Encoding: ['gzip, deflate'] | ||
64 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
65 | Connection: [keep-alive] | ||
66 | Content-Length: ['63'] | ||
67 | Content-Type: [application/x-www-form-urlencoded] | ||
68 | User-Agent: [python-requests/2.9.1] | ||
69 | method: POST | ||
70 | uri: http://localhost:3000/api/v1/statuses | ||
71 | response: | ||
72 | body: {string: '{"id":"99882235538941049","created_at":"2018-04-18T20:06:03.200Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content | ||
73 | warning","visibility":"unlisted","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882235538941049","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882235538941049","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
74 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
75 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI | ||
76 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":22},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | ||
77 | headers: | ||
78 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
79 | Content-Type: [application/json; charset=utf-8] | ||
80 | ETag: [W/"646dd9da5cd16bdde960eeec5a0bbdaa"] | ||
81 | Transfer-Encoding: [chunked] | ||
82 | Vary: ['Accept-Encoding, Origin'] | ||
83 | X-Content-Type-Options: [nosniff] | ||
84 | X-Frame-Options: [SAMEORIGIN] | ||
85 | X-Request-Id: [2290c68a-1b59-4fbf-8edd-a25b9a1d728d] | ||
86 | X-Runtime: ['0.309518'] | ||
87 | X-XSS-Protection: [1; mode=block] | ||
88 | content-length: ['1413'] | ||
89 | status: {code: 200, message: OK} | ||
90 | - request: | ||
91 | body: null | ||
92 | headers: | ||
93 | Accept: ['*/*'] | ||
94 | Accept-Encoding: ['gzip, deflate'] | ||
95 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
96 | Connection: [keep-alive] | ||
97 | Content-Length: ['0'] | ||
98 | User-Agent: [python-requests/2.9.1] | ||
99 | method: DELETE | ||
100 | uri: http://localhost:3000/api/v1/statuses/99882235538941049 | ||
101 | response: | ||
102 | body: {string: '{}'} | ||
103 | headers: | ||
104 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
105 | Content-Type: [application/json; charset=utf-8] | ||
106 | ETag: [W/"b6837f4319f47b5568763ee37aa5b1c9"] | ||
107 | Transfer-Encoding: [chunked] | ||
108 | Vary: ['Accept-Encoding, Origin'] | ||
109 | X-Content-Type-Options: [nosniff] | ||
110 | X-Frame-Options: [SAMEORIGIN] | ||
111 | X-Request-Id: [3d62d6cf-256a-4cc0-835d-730e427a30a6] | ||
112 | X-Runtime: ['0.034950'] | ||
113 | X-XSS-Protection: [1; mode=block] | ||
114 | content-length: ['2'] | ||
115 | status: {code: 200, message: OK} | ||
59 | version: 1 | 116 | version: 1 |